Skip to content

chore(deployment): Improve build process - #292

Merged
Ayush8923 merged 9 commits into
mainfrom
feat/deployment-script-improvements
Oct 12, 2026
Merged

Ayush8923 merged 9 commits into
mainfrom
feat/deployment-script-improvements

Conversation

@Ayush8923

@Ayush8923 Ayush8923 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

• CI checks before deployment: On every merge, the CI workflow runs first. The deployment script runs only if all CI checks pass. If the CI fails, the deployment will not proceed.
• Deployment notifications: The deployment status, whether successful or failed, will be notified in Discord.
• SSM deployment status: The CD workflow will proceed only after we receive a successful deployment status from SSM.

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran npm run dev and npm run build in the repository root and test.

@Ayush8923 Ayush8923 self-assigned this Oct 6, 2026
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ProjectTech4DevAI/kaapi-frontend/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 986a9f1d-4707-4f0f-b652-30e782506dfa

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot changed the title feat(infra): deployment script improvements chore(deployment): Improve build process Oct 6, 2026
--arg url "$RUN_URL" --argjson fields "$fields" \
'{embeds:[{title:$title,url:$url,color:$color,fields:$fields,timestamp:(now|todate)}]}')
curl -sf -H "Content-Type: application/json" -X POST -d "$payload" "$DISCORD_WEBHOOK_URL" \
|| echo "Discord notification failed to send"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to check if we should use exit 1 here when the Discord notification fails to send. This way, we can at least flag that something went wrong with the webhook, even if the deployment itself was healthy.

If this behavior is intentional, feel free to ignore my comment.

Comment thread .github/workflows/create-release.yml Outdated
run: |
REMOTE_CMD="export HOME=/home/$ROOT_USER && export NVM_DIR="/home/$ROOT_USER/.nvm" && [ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" && git config --global --add safe.directory ${BUILD_DIRECTORY} && set -e && cd ${BUILD_DIRECTORY} && git pull origin main && npm ci && npm run build && sudo -iu ${ROOT_USER} pm2 restart ${APP_NAME}"
: "${BUILD_DIRECTORY:?BUILD_DIRECTORY secret is not set}"
echo "Deploying commit: $DEPLOY_SHA to $BUILD_DIRECTORY"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't echo build_directory

Comment thread .github/workflows/deploy-staging.yml Outdated
REMOTE_CMD="export HOME=/home/$ROOT_USER && export NVM_DIR="/home/$ROOT_USER/.nvm" && [ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" && git config --global --add safe.directory ${BUILD_DIRECTORY} && set -e && cd ${BUILD_DIRECTORY} && git pull origin main && npm ci && npm run build && sudo -iu ${ROOT_USER} pm2 restart ${APP_NAME}"
: "${BUILD_DIRECTORY:?BUILD_DIRECTORY secret is not set}"
: "${ROOT_USER:?USER secret is not set}"
echo "Deploying commit: $DEPLOY_SHA to $BUILD_DIRECTORY"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't echo build_directory

@Ayush8923
Ayush8923 merged commit 50e288c into main Oct 12, 2026
2 checks passed
@Ayush8923
Ayush8923 deleted the feat/deployment-script-improvements branch October 12, 2026 09:16
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.1-main.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants